package com.bupt.dto.network;

import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode
@Data
public class SdhLinkDto {
    private String id;
    private String name;
    private String code;
    private Node sourceNode;
    private Node targetNode;
    private Long length;
    private int year;
    private String rate;
    private String loadOnLayer;

    public SdhLinkDto(String id, String name, String code, Node sourceNode, Node targetNode, Long length, int year, String rate, String loadOnLayer) {
        this.id = id;
        this.name = name;
        this.code = code;
        this.sourceNode = sourceNode;
        this.targetNode = targetNode;
        this.length = length;
        this.year = year;
        this.rate = rate;
        this.loadOnLayer = loadOnLayer;
    }
}

